
package net.sf.borg.model.beans;

/**
 * Class User
 *
 * Provides information that can be written to
 * a KeyedBean database for a user.
 *
 * BORG/Open Source Information here.
 *
 * Created in UF Software Engineering - Summer 2009
 * @author Matthew Carroll
 */

public class User extends KeyedBean<User> implements java.io.Serializable {

	
	//private static final long serialVersionUID = -1996612351860988688L;
	
	private String username;
	private int userID;
	
	public User() {
		this.username = null;
		this.userID = -1;
	}
	
	public User( String username, int userID ) {
		this.username = username;
		this.userID = userID;
	}
	
	public String getUserName() { return( username); }
	public void setUserName( String xx ){ username = xx; }

	private String db_path;
	public String getPathDB() { return( db_path ); }
	public void setPathDB( String xx ){ db_path = xx; }
	
	public int getUserID() { return( userID ); }
	//We should probably not allow a user's ID to change...just create a new user
	//public void setUserID( int xx ){ user_id = xx; }

	protected User clone() {
		User dst = new User(getUserName(), getUserID());
		
		return(dst);
	}
}
